home *** CD-ROM | disk | FTP | other *** search
- property mywidth, myheight
- global rx, ry, rz
-
- on beginSprite me
- set mywidth to the left of sprite the currentSpriteNum + (the width of sprite the currentSpriteNum / 2)
- set myheight to the top of sprite the currentSpriteNum + (the height of sprite the currentSpriteNum / 2)
- end
-
- on mouseWithin me
- set horz to float(the mouseV - myheight)
- set vert to float(the mouseH - mywidth)
- set rx to float(horz * 0.01)
- set ry to float(vert * 0.01)
- sendAllSprites(#xfix, rx)
- sendAllSprites(#yfix, ry)
- put "x,y,z rotate" into field "info"
- end
-